package fhp.hlhj.giantfold.module

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.javaBean.LatestOrderBean
import fhp.hlhj.giantfold.network.UrlApis

/**
 * Created by Administrator on 2018\2\8 0008.
 */
class LatestOrderModule {
    interface onRespListener{
        fun onResp(latestOrderBean: LatestOrderBean)
    }

    fun getLatestOder(params: HttpParams,listener: onRespListener){
        UrlApis.getLastetOrder(params)
                .doOnSubscribe {  }
                .subscribe {
                    data->
                    listener.onResp(data)
                }
    }
}